package com.ruoyi.mapper;

import com.ruoyi.domain.BasisEvent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BasisEventMapper {
    /**
     * 根据案例id查询事件
     * @param loadingId
     * @return
     */
    public List<BasisEvent> selectEventByLoadingId(String loadingId);

    public void insertEvent(BasisEvent event);

    void deleteEvent(@Param("ids") Long[] ids);

    void updateEvent(BasisEvent event);

    /**
     * 根据事件ID查询信息
     *
     * @param eventId 事件ID
     * @return
     */
    BasisEvent selectEventById(Long eventId);
}
